﻿<?php
include("inc/global.inc");

 
$rs=mysql_query("select id,cat_name,cat_id from catalog order by id asc");
$i=0;
while($row=mysql_fetch_array($rs))
{
	echo "subcat[$i]=new Array('".$row['cat_name']."','".$row['cat_id']."','".$row['id']."');\n";
	$i++;
}
?>